package com.example.gateway.bean;

import lombok.Getter;

public enum ResultCode {

	/**失败*/
	FAIL(-1,"失败"),
	/**成功*/
	SUCCESS(0, "成功"),
	/**参数错误*/
	PARAMERROR(400, "参数错误"),
	/**服务器异常*/
	SERVICEERROR(500, "服务器异常");

	@Getter
	private final Integer code;
	@Getter
	private final String msg;

	ResultCode(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
}
